--[[
    Lua 5.1 Copyright (C) 1994-2006 Lua.org, PUC-Rio
]]
print("tarray.lua")

print("a", a)
for i = 0,9 do
    print(i, a[i])
end
print("---------------------------")


print("p", p)
for i = 0,9 do
    print(i, p[i], p[i].x, p[i].y)
end
print("---------------------------")

print("M.a", M.a)
for i = 0,9 do
    print(i, M.a[i])
end
print("---------------------------")

print("M.p", M.p)
for i = 0,9 do
    print(i, M.p[i], M.p[i].x, M.p[i].y)
end
print("---------------------------")

print("pp", pp)
for i = 0,9 do
    print(pp[i], pp[i].x, pp[i].y)
end
print("---------------------------")

--for i=1,10 do
-- assert(array.a[i] == parray.a[i])
-- assert(array.p[i].x == parray.pp[i].x and array.p[i].y == parray.pp[i].y)
--end

--for i=1,10 do
-- array.a[i] = a[10-i+1]
--	M.a[i] = 10-i+1
--	assert(array.a[i]==M.a[i])
--end

--for i=2,10 do
-- array.p[i] = array.pp[1]
--	assert(array.p[i].x==0 and array.p[i].y==1)
--end

print("Array test OK")
